/**  
 * All rights Reserved, Designed By www.woniuxy.com
 * @Title:  Account.java   
 * @Package com.woniu.domain   
 * @Description:    Description  
 * @author: 蜗牛学院  
 * @date:   2019年10月20日 下午6:41:25
 * @user:   Administrator  
 * @version V1.0 
 * @Copyright: 2019 www.woniuxy.com Inc. All rights reserved. 
 * 注意：本内容仅限于成都蜗牛创想科技有限公司，禁止外泄以及用于其他的商业目
 */ 
package com.moon.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

/**
 * @author Administrator
 *
 */
@Configuration
public class MultiPartConfig {
	@Bean
	public CommonsMultipartResolver resolver() {
		CommonsMultipartResolver rs = new CommonsMultipartResolver();
		rs.setDefaultEncoding("UTF-8");
		rs.setMaxUploadSize(524288000);
		rs.setMaxInMemorySize(40960);
		return rs;
	}
}	
